import service from '../request'
//登录
export let login=(user)=>{
  return service.post('/login',user)
}

//退出登录
export let logout=()=>{
  return service.post('/logout')
}

//修改邮箱
export let changeEmail=(data)=>{
  return service.put('/change/email',data)
}

//修改密码
export let changePassword=(data)=>{
  return service.put('/change/password',data)
}

//修改密码
export let getCode=(userName,email)=>{
  return service.get('/get/code',{params:{userName,email}})
}


//找回密码
export let findPw=(data)=>{
  return service.put('/find/password',data)
}

//记住密码
export let remPw=(userName,password)=>{
  return service.get('/remember/password',{params:{userName,password}})
}